<?php

/**
 * @Author: zhibinm (113664000@qq.com)
 * @Date:   2018-04-13 14:16:39 
 * @Copyright:   xuebingsi
 * @Last Modified by:   Zhibinm
 * @Last Modified time: 2018-04-13 14:26:12
 */

$str = "4654";

//操作字符 串  对字符 串进行增删改查

$preg = "/^\d{3,6}?$/";//原子


$c = preg_match($preg,$str);

preg_replace();

preg_split(pattern, subject);

preg_match_all($preg,$str,$out);

var_dump($c);
